You have to go and see the ancient castle of Hrastovlje, that defended the city before Turkish invasions in the middle age.